define(["jquery","template",
	"scprit/assess/app/monthlyAssess/monthlyAssessDetail.servers.js",
	"scprit/assess/template/monthlyAssess/monthlyAssessDetail.tpl.js"],function($,template,$servers,tpl){
	var ui = {};

	var drawInfo = function(data){
		return template("assess_detail_info",data);
	}

	/**
	 * 宝宝基本信息
	 */
	ui.infoInit = function(options){
		$("#" + options.id).html(tpl.info());
		var h = drawInfo( $servers.handleInfo(options.data) );
		$("#" + options.id).html(h);
	}

	var drawFillAssessData = function(data){
		return template("assess_detail_fillAssessData",data);
	}

	/**
	 * 填写评估数据
	 */
	ui.fillAssessDataInit = function(options){
		$("#" + options.id).html(tpl.fillAssessData());
		var h = drawFillAssessData( $servers.handleFillAssessData(options.data) );
		$("#" + options.id).html(h);
	}

	return ui;
});